package com.syqc.netlib

import android.util.Log
import okhttp3.Interceptor
import okhttp3.Response

class ResponseInterceptor : Interceptor {
    private val sTag = this.javaClass.name
    override fun intercept(chain: Interceptor.Chain): Response {
        val requestTime = System.currentTimeMillis()
        val response = chain.proceed(chain.request())
        Log.d(sTag, "requestTime=" + (System.currentTimeMillis() - requestTime))
        return response
    }
}